﻿using System;
using System.Collections.Generic;
using Reece.Open.Mvc.Atom.Models;

namespace Reece.Open.Mvc.Atom
{
    public class AtomException : Exception
    {
        public AtomException(string message)
            :base (message)
        {
        }
    }

    public class AtomValidationException : AtomException
    {
        public IList<ValidationErrors> Errors { get; private set; }

        public AtomValidationException(string message, IList<ValidationErrors> errors )
            : base (message)
        {
            Errors = errors;
        }
    }
}